package com.fand.context.utils;

import org.springframework.context.ApplicationContext;

/**
 * 应用上下文工具
 * 
 * @author yaoHT
 */
public class ApplicationContextUtils {
	public static <T> T getBeanByTypeName(final ApplicationContext applicationContext, final Class<T> c) {
		return applicationContext.getBean(c.getName(), c);
	}
}
